package net.wangds.auth.common.ctrl;

import io.swagger.annotations.ApiOperation;
import net.wangds.log.helper.LogHelper;
import net.wangds.web.entrypoint.BaseResp;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/common")
public class CommonCtrl  {

    @ApiOperation("是否为开发环境")
    @RequestMapping(value = "/isDev", method = RequestMethod.GET)
    public BaseResp<Boolean> isDev() {
        return BaseResp.of(LogHelper.dev);
    }

}